<?php

namespace app\api\model;
use think\facade\Cache;

/**
 * 地区数据模型.
 */
class QuesSubjectRecord extends \app\common\model\BaseModel
{
    protected $connection ='mysql2';
    protected $name = 'subject_record';



    public  function __construct(array $data = [])
    {
        parent::__construct($data);

    }

    /**
     * 关联测评人
     * @return \think\model\relation\BelongsTo
     */
    public function quser()
    {
        return $this->belongsTo('\app\api\model\QuesUser', 'user_id', 'id');
    }

   /**
     * 关联测评人
     * @return \think\model\relation\BelongsTo
     */
    public function userinfo()
    {
        return $this->belongsTo('\app\api\model\QuesUser', 'user_id', 'id');
    }

    /**
     * 关联测评人
     * @return \think\model\relation\BelongsTo
     */
    public function subject()
    {
        return $this->belongsTo('\app\api\model\QuesSubject', 'subject_id', 'id');
    }




}
